﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JiHua_New.aspx.cs" Inherits="syc.Produce.JiHua_New" %>
<html>
<head>
</head>
<body>
<script type="text/javascript" language="javascript" src="/common.js"></script>

    <form id="form1" runat="server">
    <div id="wintop" class="wintop">创建生产计划</div>


    <asp:Panel ID="Panel1" runat="server" CssClass="panel" Visible="false">
        <asp:Button ID="Button_New" runat="server" Text="继续创建" CssClass="button" 
            UseSubmitBehavior="False" onclick="Button_New_Click" />
        <asp:Button ID="Button_MX" runat="server" Text="计划明细" CssClass="button" 
            UseSubmitBehavior="False" onclick="Button_MX_Click" />
        <asp:Button ID="Button_GL" runat="server" Text="计划管理" CssClass="button" 
            UseSubmitBehavior="False" onclick="Button_GL_Click" />
    </asp:Panel>

    <asp:Panel ID="Panel2" runat="server" CssClass="panel">
        <br />
        <table style="width: 100%;font-size:13px;">
            <tr>
                <td width="100" height="30" align="right">计划名称：

                </td>
                <td>

                    <asp:TextBox ID="MingCheng" runat="server" Width="300px"></asp:TextBox>

                </td>

            </tr>

            <tr>
                <td width="100" height="30" style="text-align: right">
                    执行期限：</td>
                <td>
                    <asp:TextBox ID="RiQi1" runat="server" Width="120px"></asp:TextBox>
                    <img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('RiQi1').value, document.getElementById('RiQi1'));" />
                    至
                    <asp:TextBox ID="RiQi2" runat="server" Width="120px"></asp:TextBox>
                    <img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('RiQi2').value, document.getElementById('RiQi2'));" />
                </td>
            </tr>

            <tr>
                <td width="100" height="40">
                    </td>
                <td style="line-height:20px;">
                    <asp:Button ID="Button_Save1" runat="server" CssClass="button" 
                        onclick="Button_Save_Click" Text="提 交" />
                    <asp:Button ID="Button_Cancel" runat="server" CssClass="button" 
                        Text="取 消" onclick="Button_Cancel_Click" />
                </td>
            </tr>

        </table>

    </asp:Panel>
    
    <asp:Panel ID="Panel3" runat="server" CssClass="panel2">
        <asp:Label ID="Message" runat="server" Text="·请输入计划名称和计划执行期限" CssClass="prompt"></asp:Label>
    </asp:Panel>



    </form>
<script>
    var textboxs = document.getElementsByTagName("input");
    var i;
    for (i = 0; i < textboxs.length; i++) {
        if (textboxs[i].className == "textbox") {
            textboxs[i].onchange = function(e) { this.className = "textbox-changed"; };
            textboxs[i].onfocus = function(e) { this.select(); };
        }
        else if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "intxt2") {
            textboxs[i].onfocus = function(e) { this.select(); };
        }

    }
    var rows = document.getElementsByTagName("tr");
    for (i = 0; i < rows.length; i++) {

        if (rows[i].className == "grid-row-normal") {
            rows[i].onmouseover = function() { this.className = "grid-row-bright"; };
            rows[i].onmouseout = function() { this.className = "grid-row-normal"; };
        }
    }
    var tds = document.getElementsByTagName("td");
    for (i = 0; i < tds.length; i++) {
        if (tds[i].className == "detailheader") {
            tds[i].innerHTML = tds[i].innerHTML.replace("*", "<span class=required>*</span>");
        }
    }
</script>
</body>
</html>
